package com.linsy.product.redis.mq.util;

import lombok.Data;

import java.util.Objects;

/**
 * 消费方法信息
 */
@Data
public class CronMethod {

    public CronMethod(Class<?> aClass, String className) {
        this.aClass = aClass;
        this.className = className;
    }

    private Class<?> aClass;

    private String className;


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CronMethod that = (CronMethod) o;
        return Objects.equals(getClassName(), that.getClassName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getClassName());
    }
}
